package com.xxadmin.usercenter.vo.request;

import com.xxadmin.common.validate.ValidGroup1;
import com.xxadmin.common.validate.ValidGroup2;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class UserInfoVO {

    @NotNull(message = "ID 不能为空",groups = {ValidGroup2.class})
    private Integer id;

    @NotBlank(message = "用户名不能为空",groups = {ValidGroup1.class,ValidGroup2.class})
    private String userName;

    @NotBlank(message = "真实姓名不能为空",groups = {ValidGroup1.class,ValidGroup2.class})
    private String realName;

    @NotBlank(message = "密码不能为空",groups = {ValidGroup1.class,ValidGroup2.class})
    private String password;

    @NotBlank(message = "所属渠道不能为空",groups = {ValidGroup1.class,ValidGroup2.class})
    private String channelCode;

    @NotBlank(message = "用户状态不能为空",groups = {ValidGroup2.class})
    private String status;
}
